<template>
  <app-container>
    <el-tabs v-model="activeName">
      <el-tab-pane label="概要信息" name="first">
        <generate-form ref="generateForm" :data="BaseInformation" :remote="remoteFuncs" :value="editData" />
      </el-tab-pane>
      <el-tab-pane label="金额信息" name="second">
        <generate-form ref="generateForm" :data="AmountInformation" :remote="remoteFuncs" :value="editData" />
      </el-tab-pane>
    </el-tabs>
    <div class="generate-block">
      <el-button type="primary" @click="handleSubmit">提交</el-button>
      <el-button type="primary">重置</el-button>
      <el-button type="primary">取消</el-button>
    </div>
  </app-container>
</template>

<script>
import GenerateForm from '@/components/CreateForm/GenerateForm'
import '@/components/CreateForm/styles/FormCreate.css'
import { getCodeList } from '@/api/codelist'
import GenerateTable from '@/components/CreateTable/GenerateTable'
export default {
  components: {
    GenerateForm,
    GenerateTable
  },
  data: function() {
    return {
      activeName: 'first',
      BaseInformation: {
        list: [
          {
            type: 'grid',
            name: '栅格布局',
            icon: 'th',
            columns: [
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '贷款借据号',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '00980101008',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542784711000_1971'
                    },
                    key: '1542784711000_1971',
                    model: 'input_1542784711000_1971',
                    rules: [
                      {
                        type: 'string',
                        message: '贷款借据号格式不正确'
                      }
                    ]
                  }
                ]
              },
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '贷款账号',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '00982100000023',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: true,
                      clearable: false,
                      remoteFunc: 'func_1542784713000_4394'
                    },
                    key: '1542784713000_4394',
                    model: 'input_1542784713000_4394',
                    rules: [
                      {
                        type: 'string',
                        message: '贷款账号格式不正确'
                      }
                    ]
                  }
                ]
              }
            ],
            options: {
              gutter: 0,
              justify: 'start',
              align: 'top',
              remoteFunc: 'func_1542784706000_29573'
            },
            key: '1542784706000_29573',
            model: 'grid_1542784706000_29573',
            rules: []
          },
          {
            type: 'grid',
            name: '栅格布局',
            icon: 'th',
            columns: [
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '合同编号',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '0020010101',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: true,
                      clearable: false,
                      remoteFunc: 'func_1542784717000_36958'
                    },
                    key: '1542784717000_36958',
                    model: 'input_1542784717000_36958',
                    rules: [
                      {
                        type: 'string',
                        message: '合同编号格式不正确'
                      }
                    ]
                  }
                ]
              },
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '公司代码',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '1001',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: true,
                      clearable: false,
                      remoteFunc: 'func_1542784719000_93014'
                    },
                    key: '1542784719000_93014',
                    model: 'input_1542784719000_93014',
                    rules: [
                      {
                        type: 'string',
                        message: '公司代码格式不正确'
                      }
                    ]
                  }
                ]
              }
            ],
            options: {
              gutter: 0,
              justify: 'start',
              align: 'top',
              remoteFunc: 'func_1542784715000_47491'
            },
            key: '1542784715000_47491',
            model: 'grid_1542784715000_47491',
            rules: []
          },
          {
            type: 'input',
            name: '成员公司名称',
            icon: 'regular/keyboard',
            options: {
              width: '30%',
              defaultValue: '中兴（沈阳）金融科技有限公司',
              required: false,
              dataType: 'string',
              pattern: '',
              placeholder: '',
              readonly: false,
              disabled: true,
              clearable: false,
              remoteFunc: 'func_1542784723000_97452'
            },
            key: '1542784723000_97452',
            model: 'input_1542784723000_97452',
            rules: []
          },
          {
            type: 'grid',
            name: '栅格布局',
            icon: 'th',
            columns: [
              {
                span: 6,
                list: [
                  {
                    type: 'select',
                    name: '货币代码',
                    icon: 'regular/caret-square-down',
                    options: {
                      defaultValue: 'CNY人民币',
                      multiple: false,
                      disabled: false,
                      clearable: false,
                      placeholder: '',
                      required: false,
                      showLabel: false,
                      width: '100%',
                      options: [
                        {
                          value: 'CNY人民币'
                        },
                        {
                          value: 'USD美元'
                        },
                        {
                          value: 'EUR欧元'
                        }
                      ],
                      remote: false,
                      remoteOptions: [],
                      props: {
                        value: 'value',
                        label: 'label'
                      },
                      remoteFunc: 'func_1542784738000_12882'
                    },
                    key: '1542784738000_12882',
                    model: 'select_1542784738000_12882',
                    rules: []
                  }
                ]
              },
              {
                span: 6,
                list: [
                  {
                    type: 'select',
                    name: '贷款状态',
                    icon: 'regular/caret-square-down',
                    options: {
                      defaultValue: '3-呆账',
                      multiple: false,
                      disabled: false,
                      clearable: false,
                      placeholder: '',
                      required: false,
                      showLabel: false,
                      width: '100%',
                      options: [
                        {
                          value: '3-呆账'
                        },
                        {
                          value: '下拉框2'
                        },
                        {
                          value: '下拉框3'
                        }
                      ],
                      remote: false,
                      remoteOptions: [],
                      props: {
                        value: 'value',
                        label: 'label'
                      },
                      remoteFunc: 'func_1542784739000_17291'
                    },
                    key: '1542784739000_17291',
                    model: 'select_1542784739000_17291',
                    rules: []
                  }
                ]
              }
            ],
            options: {
              gutter: 0,
              justify: 'start',
              align: 'top',
              remoteFunc: 'func_1542784727000_8858'
            },
            key: '1542784727000_8858',
            model: 'grid_1542784727000_8858',
            rules: []
          },
          {
            type: 'input',
            name: '核销来源账号',
            icon: 'regular/keyboard',
            options: {
              width: '30%',
              defaultValue: '100100199990900010001',
              required: false,
              dataType: 'string',
              pattern: '',
              placeholder: '',
              readonly: false,
              disabled: false,
              clearable: false,
              remoteFunc: 'func_1542784749000_33272'
            },
            key: '1542784749000_33272',
            model: 'input_1542784749000_33272',
            rules: [
              {
                type: 'string',
                message: '核销来源账号格式不正确'
              }
            ]
          },
          {
            type: 'select',
            name: '是否部分核销',
            icon: 'regular/caret-square-down',
            options: {
              defaultValue: '1-是',
              multiple: false,
              disabled: false,
              clearable: false,
              placeholder: '',
              required: false,
              showLabel: false,
              width: '10%',
              options: [
                {
                  value: '0-否'
                },
                {
                  value: '1-是'
                }
              ],
              remote: false,
              remoteOptions: [],
              props: {
                value: 'value',
                label: 'label'
              },
              remoteFunc: 'func_1542785089000_21370'
            },
            key: '1542785089000_21370',
            model: 'select_1542785089000_21370',
            rules: []
          },
          {
            type: 'grid',
            name: '栅格布局',
            icon: 'th',
            columns: [
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '合计本金',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '260,500.00',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: true,
                      clearable: false,
                      remoteFunc: 'func_1542784774000_60426'
                    },
                    key: '1542784774000_60426',
                    model: 'input_1542784774000_60426',
                    rules: [
                      {
                        type: 'string',
                        message: '合计本金格式不正确'
                      }
                    ]
                  }
                ]
              },
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '利息合计',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '5,000.00',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: true,
                      clearable: false,
                      remoteFunc: 'func_1542784777000_2972'
                    },
                    key: '1542784777000_2972',
                    model: 'input_1542784777000_2972',
                    rules: [
                      {
                        type: 'string',
                        message: '利息合计格式不正确'
                      }
                    ]
                  }
                ]
              }
            ],
            options: {
              gutter: 0,
              justify: 'start',
              align: 'top',
              remoteFunc: 'func_1542784765000_91034'
            },
            key: '1542784765000_91034',
            model: 'grid_1542784765000_91034',
            rules: []
          },
          {
            type: 'grid',
            name: '栅格布局',
            icon: 'th',
            columns: [
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '核销本金',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '260,500.00',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: true,
                      clearable: false,
                      remoteFunc: 'func_1542784780000_37015'
                    },
                    key: '1542784780000_37015',
                    model: 'input_1542784780000_37015',
                    rules: [
                      {
                        type: 'string',
                        message: '核销本金格式不正确'
                      }
                    ]
                  }
                ]
              },
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '核销利息',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '5,000.00',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: true,
                      clearable: false,
                      remoteFunc: 'func_1542784782000_7408'
                    },
                    key: '1542784782000_7408',
                    model: 'input_1542784782000_7408',
                    rules: [
                      {
                        type: 'string',
                        message: '核销利息格式不正确'
                      }
                    ]
                  }
                ]
              }
            ],
            options: {
              gutter: 0,
              justify: 'start',
              align: 'top',
              remoteFunc: 'func_1542784766000_66811'
            },
            key: '1542784766000_66811',
            model: 'grid_1542784766000_66811',
            rules: []
          }
        ],
        config: {
          labelWidth: 100,
          labelPosition: 'right'
        },
        table: {
          showRemove: false,
          showIndexCol: false,
          showEdit: false,
          showExport: false,
          showAdd: false,
          stripe: true,
          border: false
        }
      },
      AmountInformation: {
        list: [
          {
            type: 'grid',
            name: '栅格布局',
            icon: 'th',
            columns: [
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '合同金额',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780767000_29584'
                    },
                    key: '1542780767000_29584',
                    model: 'input_1542780767000_29584',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              },
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '借据金额',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780770000_11948'
                    },
                    key: '1542780770000_11948',
                    model: 'input_1542780770000_11948',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              }
            ],
            options: {
              gutter: 0,
              justify: 'start',
              align: 'top',
              remoteFunc: 'func_1542780739000_40767'
            },
            key: '1542780739000_40767',
            model: 'grid_1542780739000_40767',
            rules: []
          },
          {
            type: 'grid',
            name: '栅格布局',
            icon: 'th',
            columns: [
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '正常本金',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780814000_61138'
                    },
                    key: '1542780814000_61138',
                    model: 'input_1542780814000_61138',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              },
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '逾期本金',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780857000_69110'
                    },
                    key: '1542780857000_69110',
                    model: 'input_1542780857000_69110',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              }
            ],
            options: {
              gutter: 0,
              justify: 'start',
              align: 'top',
              remoteFunc: 'func_1542780749000_30637'
            },
            key: '1542780749000_30637',
            model: 'grid_1542780749000_30637',
            rules: []
          },
          {
            type: 'grid',
            name: '栅格布局',
            icon: 'th',
            columns: [
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '呆滞本金',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780860000_1401'
                    },
                    key: '1542780860000_1401',
                    model: 'input_1542780860000_1401',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              },
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '呆账本金',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780862000_16300'
                    },
                    key: '1542780862000_16300',
                    model: 'input_1542780862000_16300',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              }
            ],
            options: {
              gutter: 0,
              justify: 'start',
              align: 'top',
              remoteFunc: 'func_1542780751000_95665'
            },
            key: '1542780751000_95665',
            model: 'grid_1542780751000_95665',
            rules: []
          },
          {
            type: 'grid',
            name: '栅格布局',
            icon: 'th',
            columns: [
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '应收应计利息',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780865000_3141'
                    },
                    key: '1542780865000_3141',
                    model: 'input_1542780865000_3141',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              },
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '催收应计利息',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780867000_64579'
                    },
                    key: '1542780867000_64579',
                    model: 'input_1542780867000_64579',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              }
            ],
            options: {
              gutter: 0,
              justify: 'start',
              align: 'top',
              remoteFunc: 'func_1542780753000_22738'
            },
            key: '1542780753000_22738',
            model: 'grid_1542780753000_22738',
            rules: []
          },
          {
            type: 'grid',
            name: '栅格布局',
            icon: 'th',
            columns: [
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '应收欠息',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780901000_65644'
                    },
                    key: '1542780901000_65644',
                    model: 'input_1542780901000_65644',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              },
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '催收欠息',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780903000_14018'
                    },
                    key: '1542780903000_14018',
                    model: 'input_1542780903000_14018',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              }
            ],
            options: {
              gutter: 0,
              justify: 'start',
              align: 'top',
              remoteFunc: 'func_1542780754000_32884'
            },
            key: '1542780754000_32884',
            model: 'grid_1542780754000_32884',
            rules: []
          },
          {
            type: 'grid',
            name: '栅格布局',
            icon: 'th',
            columns: [
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '应收应计罚息',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780906000_3839'
                    },
                    key: '1542780906000_3839',
                    model: 'input_1542780906000_3839',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              },
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '催收应计罚息',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780908000_20458'
                    },
                    key: '1542780908000_20458',
                    model: 'input_1542780908000_20458',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              }
            ],
            options: {
              gutter: 0,
              justify: 'start',
              align: 'top',
              remoteFunc: 'func_1542780755000_85892'
            },
            key: '1542780755000_85892',
            model: 'grid_1542780755000_85892',
            rules: []
          },
          {
            type: 'grid',
            name: '栅格布局',
            icon: 'th',
            columns: [
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '应计罚息',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780914000_4467'
                    },
                    key: '1542780914000_4467',
                    model: 'input_1542780914000_4467',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              },
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '催收罚息',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780923000_88426'
                    },
                    key: '1542780923000_88426',
                    model: 'input_1542780923000_88426',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              }
            ],
            options: {
              gutter: 0,
              justify: 'start',
              align: 'top',
              remoteFunc: 'func_1542780757000_71959'
            },
            key: '1542780757000_71959',
            model: 'grid_1542780757000_71959',
            rules: []
          },
          {
            type: 'grid',
            name: '栅格布局',
            icon: 'th',
            columns: [
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '应计复息',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780925000_10844'
                    },
                    key: '1542780925000_10844',
                    model: 'input_1542780925000_10844',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              },
              {
                span: 6,
                list: [
                  {
                    type: 'input',
                    name: '复息',
                    icon: 'regular/keyboard',
                    options: {
                      width: '100%',
                      defaultValue: '',
                      required: false,
                      dataType: 'string',
                      pattern: '',
                      placeholder: '',
                      readonly: false,
                      disabled: false,
                      clearable: false,
                      remoteFunc: 'func_1542780926000_79387'
                    },
                    key: '1542780926000_79387',
                    model: 'input_1542780926000_79387',
                    rules: [
                      {
                        type: 'string',
                        message: '单行文本格式不正确'
                      }
                    ]
                  }
                ]
              }
            ],
            options: {
              gutter: 0,
              justify: 'start',
              align: 'top',
              remoteFunc: 'func_1542780760000_60757'
            },
            key: '1542780760000_60757',
            model: 'grid_1542780760000_60757',
            rules: []
          }

        ],
        config: {
          labelWidth: 100,
          labelPosition: 'right'
        },
        table: {
          showRemove: false,
          showIndexCol: false,
          showEdit: false,
          showExport: false,
          showAdd: false,
          stripe: true,
          border: false
        }
      },

      editData: {},
      values: {},
      remoteFuncs: {
        DocumentType(resolve) {
          // 财务联系人证件类型 select_1542593220000_86649
          // 获取到远端数据后执行回调函数
          // resolve(data)
          getCodeList('财务联系人证件类型').then(response => {
            resolve(response.data)
          })
        }
      }
    }
  },
  methods: {
    handleSubmit() {
      this.$refs.generateForm
        .getData()
        .then(data => {
          // 数据校验成功
          // data 为获取的表单数据
        })
        .catch(e => {
          // 数据校验失败
        })
    }
  }
}
</script>

<style scoped>
</style>
